package com.derbysoft.synxisadapter.dswitch3.translator;

import com.derbysoft.dswitch.remote.hotel.dto.RequestHeader;
import com.derbysoft.synxisadapter.commons.repository.ChannelRepository;
import com.derbysoft.synxisadapter.commons.repository.HotelRepository;
import com.derbysoft.synxisadapter.commons.utils.TestSupportBase;

/**
 * Created by: jason
 * Date: 2012-10-08
 */
public abstract class DSwitch3AbstractTranslator extends TestSupportBase {

    protected static final String TASK_ID = "TASK_ID";
    protected static final String DESTINATION = "synxis";
    protected static final String SOURCE = "channel";
    protected static final String CHANNEL_ID = "8888";

    protected static final String LOGIN = "Login";
    protected static final String PASSWORD = "Password";
    protected static final String AGENT_REFERENCE = "AgentReference";

    ChannelRepository channelRepository;
    HotelRepository hotelRepository;

    protected String provider = "dswitch2-synxis-adapter";
    protected String adapter = "dswitch3-synxis-adapter";

    protected RequestHeader createHeader() {
        RequestHeader requestHeader = new RequestHeader();
        requestHeader.setTaskId(TASK_ID);
        requestHeader.setDestination(DESTINATION);
        requestHeader.setSource(SOURCE);
        return requestHeader;
    }
}
